# -*- coding: utf-8 -*-
# !/usr/bin/env python
import os, django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
django.setup()

from rest_framework import serializers
from components.models import ResourceUser


class ResourceUserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = ResourceUser
        fields = ('resource_user_id', 'resource_user_ids', 'resource_user_code', 'resource_user_default', 'resource_user_permission_code',
                  'resource_user_name', 'resource_user_pass', 'resource_user_keyfile', 'resource_user_comment')
